package com.taikang.hmp.hservice.doctor.healthrickevalmodel.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.taikang.hmp.frame.common.datastructre.Dto;
import com.taikang.hmp.frame.common.service.impl.BaseServiceImpl;
import com.taikang.hmp.hbusiness.doctor.selfdiagnosis.bean.HealthTag;
import com.taikang.hmp.hservice.doctor.healthrickevalmodel.bean.HypertensionReport;
import com.taikang.hmp.hservice.doctor.healthrickevalmodel.service.IAssessService;

public class AssessServiceImpl extends BaseServiceImpl implements IAssessService{

	@Override
	public String submitdxzhz(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.savedxzhz", domain);
		return "/evaluationReport/dxzhz/daixieReport.html";
	}

	@Override
	public HypertensionReport querybc(Dto paramDto) {
		Map<Object,String> map=new HashMap<Object,String>();
		map.put("customerid", paramDto.getAsString("customerid"));
		map.put("evalnumberid", paramDto.getAsString("evalNumberId"));
		List<HypertensionReport> sdf=super.getNewDao().queryForList("assess_space.querybc", map);
		return sdf.get(0);
	}

	@Override
	public String submittnb(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.savetnb", domain);
		return "/evaluationReport/tnb/Report.html";
	}

	@Override
	public String submitgxy(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.savegxy", domain);
		return "/evaluationReport/gxy/xueyaReport.html";
	}

	@Override
	public String submitxxg(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.savexxg", domain);
		return "/evaluationReport/qx/quexueReport.html";
	}

	@Override
	public String submitResulthealthRisks(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.saveyjkpg", domain);
		return "/evaluationReport/yjkreport/yjkpgbg.html";
	}
	
	@Override
	public String submitResulthealthTags(HypertensionReport domain) {
		super.getNewDao().insert("assess_space.saveyjkbq", domain);
		return "SUCCESS";
	}

	@Override
	public HealthTag getbq(Map<String, Object> map) {
		List<HealthTag> sdf=super.getNewDao().queryForList("assess_space.getbq", map);
		return sdf.get(0);
		
	}

}
